package cn.cai.pethome.system.mapper;

import cn.cai.pethome.system.domain.Menu;
import cn.cai.pethome.base.mapper.BaseMapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaocai
 * @since 2022-09-05
 */
@Component
public interface MenuMapper extends BaseMapper<Menu> {


    /**
     * 查询当前登录用户拥有的菜单
     * @param logininfoId
     * @return
     */
    List<Menu> findByLogininfoId(Long logininfoId);
}
